<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>员工列表</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<script type="text/javascript" src="H-ui.admin/lib/html5shiv.js"></script>
<script type="text/javascript" src="H-ui.admin/lib/respond.min.js"></script>
<link rel="stylesheet" type="text/css"
	href="H-ui.admin/static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css"
	href="H-ui.admin/static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css"
	href="H-ui.admin/lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css"
	href="H-ui.admin/static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css"
	href="H-ui.admin/static/h-ui.admin/css/style.css" />
<script type="text/javascript"
	src="H-ui.admin/lib/DD_belatedPNG_0.0.8a-min.js"></script>
<script>
	DD_belatedPNG.fix('*');
</script>
  </head>
  
  <body>
  <nav class="breadcrumb"> <i class="Hui-iconfont">&#xe67f;</i> 首页
	<span class="c-gray en">&gt;</span> 员工管理 <span class="c-gray en">&gt;</span>
	查看员工 <a class="btn btn-success radius r"
		style="line-height:1.6em;margin-top:3px"
		href="javascript:location.replace(location.href);" title="刷新"><i
		class="Hui-iconfont">&#xe68f;</i> </a></nav>
		<s:if test='#session.user1.sywRole.name=="值班经理" '>
	<div class="page-container">
		<div class="text-c">
			<s:form action="empActionfindEmp?pageNo=1" name="queryForm">员工状态：
	 <span class="select-box inline"> <s:select name="estate"
						list="{'在职','离职','休息'}" headerKey="0" headerValue="全部"
						theme="simple" Class="select"></s:select> </span>
				<button type="submit" class="btn btn-success radius" id="" name="">
					<i class="Hui-iconfont">&#xe665;</i> 查询
				</button>
			</s:form>
		</div>
	</div>
	</s:if>
	
	<div class="cl pd-5 bg-1 bk-gray mt-20">
	<s:if test='#session.user1.sywRole.name=="值班经理" '>
			<span class="l"><a href="empActionadd" class="btn btn-primary radius"><i
					class="Hui-iconfont">&#xe600;</i> 添加员工</a> </span>
					</s:if>
				<s:if test='#session.user1.sywRole.name=="财务" '>
			<span class="l"><a href="empActionexportEmp" class="btn btn-primary radius"><i
					class="Hui-iconfont">&#xe600;</i> 导出工资</a> </span>
					</s:if>
	</div>
	
	<div class="mt-20">
		<s:form action="empActionfindEmp?pageNo=1" name="empForm">
			<table
				class="table table-border table-bordered table-hover table-bg table-sort">
				<thead>
					<tr class="text-c">
						<th width="40">ID</th>
						<th width="70">员工姓名</th>
						<th width="20">性别</th>
						<th width="20">年龄</th>
						<th width="280">身份证</th>
						<th width="180">手机号</th>
						<th width="130">地址</th>
						<th width="90">工资</th>
						<th width="90">实际工资</th>
						<th width="130">职位</th>
						<th width="90">部门</th>
						<th width="60">员工状态</th>
						<th width="260">入职时间</th>
						<th width="260">离职时间</th>
						<th width="80">操作</th>
					</tr>
				</thead>

				<tbody>
					<s:iterator value="ps.items" id="emp" status="s">
						<tr class="text-c">
							<td><s:property value="#emp.id" /></td>
							<td><s:property value="#emp.name" /></td>
							<td><s:property value="#emp.gender" /></td>
							<td><s:property value="#emp.age" /></td>
							<td><s:property value="#emp.card" /></td>
							<td><s:property value="#emp.telphone" /></td>
							<td><s:property value="#emp.address" /></td>
							<td><s:property value="#emp.salary" /></td>
							<td><s:property value="#emp.realsalary" /></td>
							<td><s:property value="#emp.sywPotision.name" /></td>
							<td><s:property value="#emp.sywDept.name" /></td>
							<td><s:property value="#emp.estate" /></td>
							<td><s:property value="#emp.bdate" /></td>
							<td><s:property value="#emp.edate" /></td>
							<td class="td-manage"><a title="修改" href="empActionfindEmpById?id=<s:property value="id"/>"
								class="ml-5" style="text-decoration:none"><i
									class="Hui-iconfont">&#xe6df;</i> </a></td>
						</tr>
					</s:iterator>
				</tbody>
			</table>
		</s:form>
		<table>	
				<tr>
	        <td colspan="7" align="center">
		      <c:import url="rollPage.jsp" charEncoding="UTF-8">
				<c:param name="formName" value="document.forms[0]"/>
				<c:param name="totalRecordCount" value="${ps.totalCount}"/>
				<c:param name="totalPageCount" value="${ps.totalPageCount}"/>
				<c:param name="currentPageNo" value="${ps.currPageNo}"/>
				</c:import>
  		  	</td>
  		  </tr>
			</table>
	</div>
	<!--_footer 作为公共模版分离出去-->
	<script type="text/javascript"
		src="H-ui.admin/lib/jquery/1.9.1/jquery.min.js"></script>
	<script type="text/javascript" src="H-ui.admin/lib/layer/2.4/layer.js"></script>
	<script type="text/javascript"
		src="H-ui.admin/static/h-ui/js/H-ui.min.js"></script>
	<script type="text/javascript"
		src="H-ui.admin/static/h-ui.admin/js/H-ui.admin.js"></script>
	<!--/_footer 作为公共模版分离出去-->

	<!--请在下方写此页面业务相关的脚本-->
	<script type="text/javascript"
		src="H-ui.admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
	<script type="text/javascript"
		src="H-ui.admin/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
	<script type="text/javascript"
		src="H-ui.admin/lib/laypage/1.2/laypage.js"></script>
	<script type="text/javascript">
		
	</script>
  </body>
</html>
